package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 设备控制参数表
 * </p>
 *
 * @author nes
 * @since 2023-03-23
 */
@TableName("equipment_control_param")
public class EquipmentControlParam extends Model<EquipmentControlParam> {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 厂商id
     */
    @TableField("manufacture_id")
    private String manufactureId;
    /**
     * 设备协议id
     */
    @TableField("protocol_id")
    private String protocolId;
    /**
     * 设备协议名称
     */
    @TableField("protocol_name")
    private String protocolName;
    /**
     * 采集字段
     */
    @TableField("field_name")
    private String fieldName;
    /**
     * 功能码
     */
    @TableField("functionCode")
    private String functionCode;
    /**
     * 功能名称
     */
    @TableField("functionName")
    private String functionName;
    /**
     * 设备类型
     */
    @TableField("sblx_id")
    private String sblxId;
    /**
     * 值类型 1布尔型，2枚举型，3无值控制，4数值控制
     */
    @TableField("functionType")
    private String functionType;
    /**
     * 最大值
     */
    @TableField(value = "`MaxValue`")
    private BigDecimal MaxValue;
    /**
     * 最小值
     */
    @TableField(value = "`MinValue`")
    private BigDecimal MinValue;
    /**
     * 分组代码
     */
    @TableField("groupCode")
    private String groupCode;
    /**
     * 分组名称
     */
    @TableField("groupName")
    private String groupName;
    /**
     * 功能列表
     */
    @TableField("list_val")
    private String listVal;
    /**
     * 排序字段
     */
    @TableField("`sort`")
    private Integer sort;
    /**
     * 设备ID
     */
    @TableField("sb_id")
    private String sbId;
    /**
     * 计量单位
     */
    @TableField("unit_value")
    private String unitValue;
    /**
     * 控制指令id
     */
    @TableField("control_command_id")
    private String controlCommandId;
    /**
     * 是否删除 0-否;1-是
     */
    @TableField("sfsc")
    private Integer sfsc;

    @TableField("isUser")
    private String isUser;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getManufactureId() {
        return manufactureId;
    }

    public void setManufactureId(String manufactureId) {
        this.manufactureId = manufactureId;
    }

    public String getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(String protocolId) {
        this.protocolId = protocolId;
    }

    public String getProtocolName() {
        return protocolName;
    }

    public void setProtocolName(String protocolName) {
        this.protocolName = protocolName;
    }

    public String getFieldName() {
        return fieldName;
    }

    public void setFieldName(String fieldName) {
        this.fieldName = fieldName;
    }

    public String getFunctionCode() {
        return functionCode;
    }

    public void setFunctionCode(String functionCode) {
        this.functionCode = functionCode;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public String getSblxId() {
        return sblxId;
    }

    public void setSblxId(String sblxId) {
        this.sblxId = sblxId;
    }

    public String getFunctionType() {
        return functionType;
    }

    public void setFunctionType(String functionType) {
        this.functionType = functionType;
    }

    public BigDecimal getMaxValue() {
        return MaxValue;
    }

    public void setMaxValue(BigDecimal MaxValue) {
        this.MaxValue = MaxValue;
    }

    public BigDecimal getMinValue() {
        return MinValue;
    }

    public void setMinValue(BigDecimal MinValue) {
        this.MinValue = MinValue;
    }

    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getListVal() {
        return listVal;
    }

    public void setListVal(String listVal) {
        this.listVal = listVal;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getSbId() {
        return sbId;
    }

    public void setSbId(String sbId) {
        this.sbId = sbId;
    }

    public String getUnitValue() {
        return unitValue;
    }

    public void setUnitValue(String unitValue) {
        this.unitValue = unitValue;
    }

    public String getControlCommandId() {
        return controlCommandId;
    }

    public void setControlCommandId(String controlCommandId) {
        this.controlCommandId = controlCommandId;
    }

    public Integer getSfsc() {
        return sfsc;
    }

    public void setSfsc(Integer sfsc) {
        this.sfsc = sfsc;
    }

    public String getIsUser() {
        return isUser;
    }

    public void setIsUser(String isUser) {
        this.isUser = isUser;
    }

    public static final String ID = "id";

    public static final String MANUFACTURE_ID = "manufacture_id";

    public static final String PROTOCOL_ID = "protocol_id";

    public static final String PROTOCOL_NAME = "protocol_name";

    public static final String FIELD_NAME = "field_name";

    public static final String FUNCTIONCODE = "functionCode";

    public static final String FUNCTIONNAME = "functionName";

    public static final String SBLX_ID = "sblx_id";

    public static final String FUNCTIONTYPE = "functionType";

    public static final String MAXVALUE = "MaxValue";

    public static final String MINVALUE = "MinValue";

    public static final String GROUPCODE = "groupCode";

    public static final String GROUPNAME = "groupName";

    public static final String LIST_VAL = "list_val";

    public static final String SORT = "sort";

    public static final String SB_ID = "sb_id";

    public static final String UNIT_VALUE = "unit_value";

    public static final String CONTROL_COMMAND_ID = "control_command_id";

    public static final String SFSC = "sfsc";

    public static final String ISUSER = "isUser";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "EquipmentControlParam{" +
        ", id=" + id +
        ", manufactureId=" + manufactureId +
        ", protocolId=" + protocolId +
        ", protocolName=" + protocolName +
        ", fieldName=" + fieldName +
        ", functionCode=" + functionCode +
        ", functionName=" + functionName +
        ", sblxId=" + sblxId +
        ", functionType=" + functionType +
        ", MaxValue=" + MaxValue +
        ", MinValue=" + MinValue +
        ", groupCode=" + groupCode +
        ", groupName=" + groupName +
        ", listVal=" + listVal +
        ", sort=" + sort +
        ", sbId=" + sbId +
        ", unitValue=" + unitValue +
        ", controlCommandId=" + controlCommandId +
        ", sfsc=" + sfsc +
        ", isUser=" + isUser +
        "}";
    }
}
